<template>
 <div class="container">
  <!--  -->
  <router-view></router-view>
  <div class="footer" >
    <van-tabbar v-model="active" route >  
  <van-tabbar-item to="/" icon="video-o">电影</van-tabbar-item>
  <van-tabbar-item to="/film" icon="shop-o">影院</van-tabbar-item>
  <van-tabbar-item icon="comment-o">资讯</van-tabbar-item>
  <van-tabbar-item icon="manager-o">我的</van-tabbar-item>
</van-tabbar>
  </div>
 </div>
  <router-view/>
</template>
<script setup>
import { ref } from 'vue';
const active = ref(1);
</script>
<style lang="scss">
*{
  padding: 0;
  margin: 0;
  list-style: none;
}
html,body,#app,.container{
  width: 100%;
  height: 100%;
}
.container{
  display: flex;
  flex-direction: column;
  .box{
    flex: 1;
    overflow: auto;
    .header{
      height: 3.75rem;
    }
    .content{
      flex: 1;
      overflow: auto;
    }
  }
  .footer{
    height: 3.75rem;
    .van-tabbar-item--active{
      color: orange;
    }
  }
}
</style>
